package com.yzy.fly.entity.jdk;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.yzy.fly.kernel.model.FlyBasicModel;
import lombok.Data;

@Data
@TableName(value = "jdk_field", autoResultMap = true)
public class JdkField extends FlyBasicModel<Integer,JdkField> {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
//    //已知直接子类
    private String modifier;
    private String type;
    private String code;

    @TableField(value = "parameters",typeHandler = FastjsonTypeHandler.class)
    private JSONArray parameters = new JSONArray(0);
    private int parameterSzie = 0;
    private String simpleDescription;
    private String description;

    @TableField(value = "exceptions",typeHandler = FastjsonTypeHandler.class)
    private JSONArray exceptions = new JSONArray(0);
    private int exceptionSzie = 0;
    private String since;
    private String verison;
    @Deprecated
    private String sourceUrl;

//    @ParentId("classId")
    private Integer classId;
//    @ParentId("packageId")
    private Integer packageId;
}
